<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		// getComputedStyle 获取的是style标签里的样式。
		function getStyle(obj,attr){
			if(obj.currentStyle){
				//IE
				return obj.currentStyle[attr];
			}else{
				return getComputedStyle (obj,null)[attr]
				} 
		}
	</script>
</html>
